import {
    get,
    post
} from './request.js'

/**
 * 获取小程序页面类型
 * @author  安晓杰
 */
export const getType = (data) => post('https://cydl.hbmingpai.com/index.php/index/index/obtainVersion', data)

/**
 * 获取小程序授权信息
 * @author  安晓杰
 */
export const dytaskAuth = (data) => post('https://cydl.hbmingpai.com/index.php/index/Douyinuser/dytaskAuth', data)

/**
 * 获取小程序授权信息
 * @author  郭朝夕
 */
export const alitaskAuth = (data) => post('https://cydl.hbmingpai.com/index.php/index/Zhifubaouser/zfbtaskAuth', data)

/**
 * 提交信息 获取oid
 * @author  安晓杰
 */
export const submitInfo = (data) => post('https://cy.hbmingpai.com/?ac=postBban1', data,false,'',{
    'Content-Type': 'application/x-www-form-urlencoded'
})

export const submitInfoH5 = (data) => post('https://cy.hbmingpai.com/?ac=postBban1', data, false, '', {
	'content-type': 'application/x-www-form-urlencoded',
})
/**
 * 提交信息 获取oid
 * @author  安晓杰
 */
export const postExtraServeData = (data) => post('https://cy.hbmingpai.com/?ac=postExtraServeData', data,false,'',{
    'Content-Type': 'application/x-www-form-urlencoded'
})


/**
 * 获取金额信息
 * @author  安晓杰
 */
export const getMoneyInfo = (data) => get('https://cy.hbmingpai.com/', data)


/**
 * 获取金额信息
 * @author  安晓杰
 */
export const getBaZeShowData = (data) => get('https://cy.hbmingpai.com/', data)

/**
 * 获取吊起支付信息
 * @author  安晓杰
 */
export const payOrder = (data) => post('https://cydl.hbmingpai.com/index.php/index/Douyinuser/payOrder', data)

/**
 * 获取吊起支付宝支付信息
 * @author  郭朝夕
 */
export const alipayOrder = (data) => post('https://cydl.hbmingpai.com/index.php/index/Zhifubaouser/payOrder', data)

/**
 * 获取吊起h5端支付宝支付信息
 * @author  郭朝夕
 */
export const h5AlipayOrder = (oid) => post(`https://cy.hbmingpai.com/?ct=pay&ac=go&oid=${oid}&type=2`)

/**
 * 获取吊起h5端微信付信息
 * @author  郭朝夕
 */
export const h5WxpayOrder = (oid) => post(`https://cy.hbmingpai.com/?ct=pay&ac=go&oid=${oid}&type=1`)

/**
 * 获取支付结果
 * @author  安晓杰
 */
export const getOrderInfo = (data) => post('https://cydl.hbmingpai.com/index.php/index/index/orderShow', data)

/**
 * 获取支付列表
 * @author  安晓杰
 */
export const myOrderList = (data) => post('https://cydl.hbmingpai.com/index.php/index/index/myOrderList', data)

/**
 * 获取困惑按钮开关
 * @author  郭朝夕
 */
export const getShowAsk = (data) => post('https://cydl.hbmingpai.com/index.php/index/index/kunHuoIsShow', data)

/**
 * 获取指定类型的建议报告
 * @author  郭朝夕
 */
export const getResultByType = (data) => post('https://cydl.hbmingpai.com/index.php/index/index/getAiResultContent', data)

/**
 * 获取指定类型的建议报告
 * @author  郭朝夕
 */
export const getAiReportStatus = (data) => post('https://cydl.hbmingpai.com/index.php/index/index/getAiIsSuccessAll', data)

/**
 * 获取订单详情
 * @author  郭朝夕
 */
export const getOrderByPayOrder = (data) => post('https://cydl.hbmingpai.com/index.php/index/index/orderShowByPayOrder', data)

/**
 * 根据oids获取订单列表
 * @author  郭朝夕
 */
export const getOrderListByIds = (data) => post('https://cydl.hbmingpai.com/index.php/index/index/myOrderListUseOidStr', data)
